package com.victualler.product.employee.dto.request;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.ColumnFormatEnum;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @author Guoshichang
 * @since 22:25 on 2018/10/2.
 */
@SimpleQueryFrom(value = "employee EmployeeDao")
public class EmployeeRequestDto implements Serializable {

    //工号
    @SimpleQueryWhere(specialName = "EmployeeDao.work_no",linkType = LinkType.LIKE)
    @ListPageQuery(title = "工号")
    private String workNo;
    //员工姓名
    @SimpleQueryWhere(specialName = "EmployeeDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "员工姓名")
    private String name;
    //性别
    @SimpleQueryWhere(specialName = "EmployeeDao.gender")
    @ListPageQuery(title = "性别",type = ColumnFormatEnum.DICT,dictCodeType = "GenderType")
    private String gender;
    //学历(学位)
    @SimpleQueryWhere(specialName = "EmployeeDao.degree",linkType = LinkType.LIKE)
    @ListPageQuery(title = "学历",type = ColumnFormatEnum.DICT,dictCodeType = "DegreeType")
    private String degree;
    //职位(字典类型)
    @SimpleQueryWhere(specialName = "EmployeeDao.position",linkType = LinkType.LIKE)
    @ListPageQuery(title = "职位",type = ColumnFormatEnum.DICT,dictCodeType = "PositionType")
    private String position;

    @SimpleQueryWhere(specialName = "EmployeeDao.state")
    @ListPageQuery(title = "状态",type = ColumnFormatEnum.DICT,dictCodeType = "EntityState")
    private String state;


    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
